package thread;

public class demo3 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread("张三线程") {
            @Override
            public void run() {
                System.out.println("111");
            }
        };
        t.start();
        Thread.sleep(1000);
        System.out.println(t.getState());
    }
}
